package edu.spec.wfl.week08.class2.homework;

public class Bear extends Animal implements IAnimal,IHibernate{
    public String hibernate;
    private String hibernate(Bear b){
        return b.hibernate();
    }
    public Bear(String name, String food, String area) {
        super(name, food, area);
        this.hibernate = hibernate;
    }

    @Override
    public String findFood() {
        return "小鱼";
    }
    @Override
    public String wholeLife() {
        return (born()+"\t"+findFood()+"\t"+eat()+"\t"+old()+"\t"+sick()+"\t"+die()+"\t");
    }
    @Override
    public String born() {
        return "1998";
    }
    @Override
    public String old() {
        return "5岁";
    }
    @Override
    public String sick() {
        return "胃痛";
    }
    @Override
    public String die() {
        return "被捕杀";
    }

    @Override
    public String ihibernate() {
        return name+"冬眠3个月";
    }

    @Override
    public String hibernate() {
        return null;
    }
}
